package com.mapper.test.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2019-06-04 下午12:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "table_user")
public class User {
    @Id
    private Integer userId;
    private String userName;
    @Column
    private Address address;
    // 在枚举类型这里无法使用@ColumnType注解注册MyBatis内置的枚举类型处理器
    // 因为存在一个泛型的问题
    //@ColumnType(Handler= EnumTypeHandler.class)
    @Column
    private SeasonEnum season;
}
